


import 'package:flutter/material.dart';

class AppConfig {

  /// Construct a color from a hex code string, of the format #RRGGBB.
  static Color hexToColor(String code) {
    return  Color(int.parse(code.substring(1, 7), radix: 16) + 0xFF000000);
  }

  static Widget getPlaceHoder({double width = 24, double height = 25,String imagePath = "",}) {
    return  Container(
        width: width,
        height: height,
        child:  Image.asset(imagePath,fit: BoxFit.cover,));
  }

  static Widget getUserPlaceHoder({double width = 24, double height = 25,String imagePath = "",}) {
    return  Container(
        width: width,
        height: height,
        child:  Image.asset(imagePath));
  }

}

